require 'watir'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'watir/testUnitAddons'
require 'watir/testcase'
require 'watir/contrib/enabled_popup'
#---------------------------------------#
  $ie = Watir::IE.new()
  $ie.set_fast_speed()
  $ie.focus()
  $ie.maximize()

  $UniVar = "http://localhost/cs"
  $ADMIN = "ryhoward"
  $PASSWORD = "navigator"

#  $UniVar = "http://localhost:2212/"
#  $ADMIN = "admin"
#  $PASSWORD = "pa$$word"

  $DESCRIPTION = "some body"
#-----------------------------------------------------------------------------------#
    $ie.goto($UniVar)
    $ie.link(:text, 'Sign in').click
    $ie.text_field(:id, /username/).set($ADMIN)
    $ie.text_field(:id, /password/).set($PASSWORD)

#    $ie.link(:id, /ctl00_bcr_ctl00_ctl03_loginButton/).click#   copy for remote
    $ie.link(:id, /ctl00_bcr_Login1___loginButton/).click   #   cs2.1 version       

topdir = File.dirname(__FILE__)
Dir.chdir topdir do
  $all_tests = Dir["test_*"]#["*_Admin.rb"]
end
$all_tests.each {|x| 
  begin
    timeout(1.0) do |timeout_length|                  
      require x                      
    end
  rescue Timeout::Error => e
    puts "Error Message: " + e
  end
}